import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
	state: {
		token: "",
		user: {},
		hasUserInfo:false,
		userLocation:{}
	},
	mutations: {
		setToken(state, token) {
		  state.token = token
		},
		setUser(state, user) {
		  state.user = user
		},
		setHasUserInfo(state, hasUserInfo) {
		  state.hasUserInfo = hasUserInfo
		}
	},
	actions: {

	}
})
export default store